import request from '@/utils/request'

export const login = data => request.post('/login', data)

export const getInfo = token => request.get('/sys/profile', { params: { token }})

export const getCaptcha = key => request.get(`/captcha?key=${key}`, { responseType: 'blob' })
